class CreateStocks < ActiveRecord::Migration
  def change
    create_table :stocks do |t|
      t.string :name
      t.date :purchase_date
      t.decimal :purchase_cost
      t.decimal :sale_cost
      t.string :company
      t.string :category
      t.integer :quantity
      t.string :lot
      t.boolean :sold

      t.timestamps
    end
  end
end
